package com.designpatterns.builderpattern.impl.item.abs;

import com.designpatterns.builderpattern.Item;
import com.designpatterns.builderpattern.Packing;
import com.designpatterns.builderpattern.impl.packing.Bottle;

//3.创建实现 Item 接口的抽象类，该类提供了默认的功能
public abstract class ColdDrink implements Item
{

	// 不同的ColdDrink的打包方式都一样
	@Override
	public Packing packing()
	{
		return new Bottle();
	}

	// 不同的ColdDrink的价格不一样
	@Override
	public abstract float price();
}
